package com.tanhua.dubbo.api;

import com.tanhua.model.mongo.Comment;
import com.tanhua.model.enums.CommentType;
import com.tanhua.model.mongo.Comment;
import com.tanhua.model.mongo.Movement;
import com.tanhua.model.mongo.UserLike;
import com.tanhua.model.mongo.Visitors;
import com.tanhua.model.vo.PageResult;
import com.tanhua.model.vo.VisitorsVo;

import java.util.List;

public interface MovementApi {

    //发布动态
    String publish(Movement movement);

    //根据用户id，查询此用户发布的动态数据列表
    PageResult findByUserId(Long userId,Integer state,Integer page, Integer pagesize);

    List<Movement> findFriendMovements(Long userId, Integer page, Integer pagesize);

    List<Movement> randomMovements(Integer pagesize);

    List<Movement> findByPids(List<Long> pids);

    Movement findById(String movementId);

    void update(String movementId, Integer state);

    List<Visitors> queryVisitList(Integer page, Integer pagesize, Long userId);

    List<Comment> queryLikesList(Integer page, Integer pagesize, Long userId);

    List<Comment> queryCommentsList(Integer page, Integer pagesize, Long userId);

    List<Comment> queryLikeList(Integer page, Integer pagesize, Long userId);

 //  List<UserLike> LikeList(Integer page, Integer pagesize, Long userId);
    void passMovements(String movementId, Integer state);

}
